package com.weixin.mp.config;

import com.weixin.mp.api.WxMpInMemoryConfigStorage;
import com.weixin.mp.api.WxMpServiceImpl;

public class  BusinessWeixinConfig {
	public final static String AppId = "wx5435f17dc4471397";
	public final static String AppSecret = "0d6460117dcaa05a081b0fceb076ae8c";
	public static WxMpServiceImpl getWxMpServiceImpl() {
		WxMpInMemoryConfigStorage config = new WxMpInMemoryConfigStorage();
		config.setAppId(AppId); // 设置微信公众号的appid
		config.setSecret(AppSecret); // 设置微信公众号的app
		WxMpServiceImpl wxService = new WxMpServiceImpl();
		wxService.setWxMpConfigStorage(config);
		return wxService;
	}
}
